<?php
/**
 * Connection to the database:
 * First piece is the old dirty way, but unfortunately still
 * needed because not all the modules are rebuilded to the
 * new PDO-way.
 *
 * @package Includes
 */
@mysql_connect		($_CONFIG ['pPDO']['host'], $_CONFIG ['pPDO']['uname'], $_CONFIG ['pPDO']['pass']);
@mysql_select_db	($_CONFIG ['pPDO']['db']);

try
{
	$pPDO = new PDO ('mysql:host=' . $_CONFIG ['pPDO']['host'] . ';dbname=' . $_CONFIG ['pPDO']['db'], $_CONFIG ['pPDO']['uname'], $_CONFIG ['pPDO']['pass']);
	$pPDO -> setAttribute (PDO :: ATTR_ERRMODE, PDO :: ERRMODE_WARNING);
}
catch (PDOException $e)
{
	ePDOException :: writeMessage ($e);
}